package com.edee.bigday.ware;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//下面和数据库相关的两项注解，已经移至com/edee/bigday/ware/config/WareMyBatisConfig.java中：
//@EnableTransactionManagement
//@MapperScan("com.edee.bigday.ware.dao")
@EnableFeignClients(basePackages = "com.edee.bigday.ware.feign")
//因为在主配置位，上面feign接口的包也可以不指定。
@EnableRabbit
@SpringBootApplication
@EnableDiscoveryClient
public class  BigdayWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(BigdayWareApplication.class, args);
    }

}
